import {$get,$post} from './http'

//用户列表
export const $userlist=async(params:object)=>{
    return await $get('./user/userlist',params)
}
//用户类型
export const $usertype=async(params:object)=>{
    return await $get('./user/usertype',params)
}
//设置多用户分组
export const $setUsersGroup=async(params:object)=>{
    return await $post('./user/setUsersGroup',params)
}
//设置用户分组/退出用户分组
export const $updateUserGroup=async(params:object)=>{
    return await $post('./user/updateUserGroup',params)
}

//用户绑定
export const $bindUser=async(params:object)=>{
    return await $post('./user/bindUser',params)
}
//解除用户绑定
export const $unbindUser=async(params:object)=>{
    return await $post('./user/unbindUser',params)
}
//获取客户资料
export const $getUserInfo=async(params:object)=>{
    return await $get('./user/getUserInfo',params)
}
//更新客户资料
export const $updateUserInfo=async(params:object)=>{
    return await $post('./user/updateUserInfo',params)
}

//地址联动列表
export const $getUserRegion=async(params:object)=>{
    return await $get('./user/region/list',params)
}
//地址联动列表
export const $getCode=async(params:object)=>{
    return await $get('./user/region/code',params)
}
export const $subsLive=async(params:object)=>{
    return await $get('./user/subs/live',params)
}
export const $subsOrder=async(params:object)=>{
    return await $get('./user/subs/order',params)
}
export const $subsFavor=async(params:object)=>{
    return await $get('./user/subs/favor',params)
}
export const $groupList=async(params:object)=>{
    return await $get('./user/group/list',params)
}
export const $msgStatus=async(params:object)=>{
    return await $get('./user/msg/status',params)
}
export const $msgList=async(params:object)=>{
    return await $get('./user/msg/list',params)
}
// function login(data?:object){
//     return axios.post('./user/login/',data);
// }

// function register(data:unknown){
//     return axios.post('./user/register/',data);
// }




